home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Button / Sources / Content.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.3 KB  |  86 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Content.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONTENT_H
  13. #define CONTENT_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWCONTNT_H
  18. #include "FWContnt.h"
  19. #endif
  20.  
  21. #ifndef FWEXCLIB_H
  22. #include "FWExcLib.h"
  23. #endif
  24.  
  25. //========================================================================================
  26. //    Forward Declarations
  27. //========================================================================================
  28.  
  29. class CButtonPart;
  30. class CAction;
  31.  
  32. //========================================================================================
  33. //    class CButtonContent
  34. //========================================================================================
  35.  
  36. class CButtonContent : public FW_CContent
  37. {
  38.   public:
  39.     FW_DECLARE_AUTO(CButtonContent)
  40.  
  41. //----------------------------------------------------------------------------------------
  42. //    Initialization/Destruction
  43. //
  44.   public:
  45.     CButtonContent(Environment* ev, CButtonPart* part);
  46.     virtual ~CButtonContent();
  47.  
  48. //----------------------------------------------------------------------------------------
  49. //    Inherited API
  50. //
  51.   public:
  52.     virtual void        Externalize(Environment* ev,
  53.                                      ODStorageUnit* storageUnit,
  54.                                      FW_EStorageKinds storageKind,
  55.                                      FW_CCloneInfo* cloneInfo);
  56.     virtual FW_Boolean    Internalize(Environment* ev,
  57.                                      ODStorageUnit* storageUnit, 
  58.                                      FW_EStorageKinds storageKind,
  59.                                      FW_CCloneInfo* cloneInfo);
  60.  
  61. //----------------------------------------------------------------------------------------
  62. //    New API
  63. //
  64.   public:
  65.       CAction*            GetAction();
  66.       void                SetAction(CAction* action);
  67.  
  68.     CAction*            RemoveAction();
  69.  
  70. //----------------------------------------------------------------------------------------
  71. //    Data Members
  72. //
  73.   private:
  74.     CAction*            fAction;
  75. };
  76.  
  77. //----------------------------------------------------------------------------------------
  78. // CButtonContent::GetAction
  79. //----------------------------------------------------------------------------------------
  80. inline CAction* CButtonContent::GetAction()
  81. {
  82.     return fAction;
  83. }
  84.  
  85. #endif
  86.